package zju.ccnt.oauth2.user.api;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * Created by zha on 14/11/5.
 */
public class CreateUserResponse<T extends ApiUser> {
    @NotNull
    @Valid
    private T apiUser;

    @NotNull
    @Valid
    private String callbackUrI;

    public CreateUserResponse(final T apiUser,final String callback) {
        this.apiUser = apiUser;
        this.callbackUrI = callback;
    }

    public CreateUserResponse() {}

    public T getApiUser() {
        return apiUser;
    }

    public void setApiUser(T apiUser) {
        this.apiUser = apiUser;
    }

    public String getCallbackUrI() {
        return callbackUrI;
    }

    public void setCallbackUrI(String callbackURI) {
        this.callbackUrI = callbackURI;
    }
}
